
<?php echo $this->element('body_help');?>
<?php echo $this->element('breadcrumb');?>
<div class="wrap">
<div id="icon-users" class="icon32"><br></div>
<h2>
	<?php __('Đăng ký đề tài');?>
	<a class="button add-new-h2" href="<?php echo $this->webroot;?>groups"><?php __('Nhóm sử dụng');?></a>
</h2>
<?php echo $this->Session->flash();?>
<br/>
<div id="pageFormContent">
<div id="form_project">
<div class="projects form">
<?php echo $this->Form->create('Project');?>
	<fieldset>
	<?php
		echo $this->Form->input('project_year_id',array('label'=>'Năm thực hiện','class'=>'required'));
		echo $this->Form->input('project_category_id',array('label'=>'Lĩnh vực đăng ký','class'=>'required'));
		echo $this->Form->input('user_id',array('label'=>'Giáo viên hướng dẫn','class'=>'required'));
		echo $this->Form->input('name',array('label'=>'Tên đề tài','class'=>'required'));
		echo $this->Form->input('description',array('label'=>'Môt tả khái quát đề tài thực hiện','class'=>'required'));
		if($loginIn['User']['group_id'] =='3')
		if(isset($student))
			echo $this->Form->input('isStudent',array('options'=>$student,'label'=>'Sinh viên thực hiện','empty'=>'--Chọn sinh viên thực hiện--'));
		else
			echo $this->Form->input('isStudent',array('label'=>'Sinh viên thực hiện','readonly'=>true,'type'=>'hidden'));
	//	echo $this->Form->input('security_code');
	//	echo $this->Form->input('published');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Đăng ký', true));?>
<script type="text/javascript">
	$(document).ready(function(){
		$('#ProjectAddForm').validate();
	});
</script>

</div>

</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Projects', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Project Years', true), array('controller' => 'project_years', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Year', true), array('controller' => 'project_years', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Notes', true), array('controller' => 'project_notes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Note', true), array('controller' => 'project_notes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Reports', true), array('controller' => 'project_reports', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Report', true), array('controller' => 'project_reports', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Students', true), array('controller' => 'project_students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Student', true), array('controller' => 'project_students', 'action' => 'add')); ?> </li>
	</ul>
</div>
<br class="clear">
</div>
<div class="clear"></div>
</div>